package com.bed.lovewithpatientbed.service.impl;

import com.bed.lovewithpatientbed.dao.BedStatusDao;
import com.bed.lovewithpatientbed.pojo.BedStatus;
import com.bed.lovewithpatientbed.service.BedStatusSearvice;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author sunningsheng
 * @version 1.0.0
 * @ClassName BedStatusServiceImpl.java
 * @Description
 * @createTime 2020年10月16日 09:41:00
 */
@Service
public class BedStatusServiceImpl implements BedStatusSearvice {

    @Resource
    private BedStatusDao bedStatusDao;
    /**
     * @title getStatusName
     * @description 根据状态id获得状态名称
     * @author sunningsheng
     * @updateTime
     * @throws
     */
    @Override
    public String getStatusName(Integer bedStatusId) {
        BedStatus bedStatus = bedStatusDao.selectByPrimaryKey(bedStatusId);
        String bedStatusName = bedStatus.getBedStatusName();
        return bedStatusName;
    }
}
